# -*- coding: UTF-8 -*-
"""
@author: tgy
@file: property_demo.py
@time: 2021/02/01
"""

def mystatic(func):
    ...
    return staticmethod(func)

class Person:

    @property
    def name(self):
        return 'zhangsan'


    @name.setter
    def name(self, val):
        print(val)

    @name.deleter
    def name(self):
        print('remove')

    def run(cls):
        ...
        print(cls)
    # @mystatic
    @staticmethod
    def eat():
        ...
        print('eat ...')

    run = classmethod(run)
    # eat = staticmethod(eat)



if __name__ == '__main__':
    pass
    person = Person()
    print(person.name)
    person.name = 'lisi'
    del  person.name

    Person.run()
    Person.eat()